package service;

import core.Page;
import domain.AdminUser;

import java.sql.SQLException;

/**
 * @author 于金鹏
 * @Date 2024/12/20 9:36
 * @Package StudentCheckSystem
 */
public interface AdminUserService {
    // 用户登录验证
    boolean login(String username, String password) throws SQLException;

    // 用户注册
    void register(AdminUser adminUser) throws SQLException;

    int addUser(AdminUser adminUser) throws SQLException;

    int deleteUser(int id) throws SQLException;

    int updateUser(AdminUser adminUser) throws SQLException;

    AdminUser getUserById(int id) throws SQLException;

    Page<AdminUser> getUserPage(int pageNum, int pageSize, AdminUser adminUser) throws SQLException;



}
